home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr14 / bulk_ml.zip / README.DOC < prev   
Text File  |  1995-03-13  |  17KB  |  392 lines

  1. What is this all about?
  2. -----------------------
  3. This file describes how to use software from a variety of sources to
  4. send bulk e-mail via your Wildcat! BBS and UUCP software.  Of course,
  5. it may be adaptable to other purposes, but I leave that as an exercise
  6. for the reader.  The software mentioned herein are:
  7.    File Express:  A shareware database management program for DOS,
  8.                   published by Expressware Corporation.  See text
  9.                   below for details on obtaining the shareware and/or
  10.                   registered version.
  11.    Wildcat!:      A BBS program for DOS, published by Mustang Software,
  12.                   Inc.  If you can't find Wildcat! Test Drive, you're
  13.                   not looking very hard, but you can always get it from
  14.                   UniNova's BBS at (509) 925-3893.
  15.    Post Master:   A utility for Wildcat! that imports text files into
  16.                   the message database.  This, or a similar utility,
  17.                   is vital to this whole procedure.  You can also find
  18.                   Post Master (shareware) on UniNova's BBS.
  19.    (UUCP):        It is assumed you have software to support a UUCP
  20.                   Internet mail feed, such as wcUUCP or wcGATE with
  21.                   FXUUCICO or equivalent.
  22.    EMFFCUT:       The public domain program I hacked out tonight just
  23.                   for this purpose.  Source code (no guarantees as to
  24.                   quality) should be included with this file.
  25. Of course, all product names, trademarks, etc. are the property of their
  26. respective owners (circular statement?) and are hereby recognized en masse.
  27. You are encouraged to register shareware that you use regularly.
  28.  
  29. DISCLAIMER:
  30. -----------
  31. The information in this file, and all components of EMFFCUT,
  32. are hereby placed into the public domain and you assume full responsibility
  33. for anything you do to it or it does to you.  I make absolutely no
  34. warranties or guarantees that any of this will work for you; if you can't
  35. handle that responsibility, delete the files now.  Even if you don't,
  36. you're still responsible.  I'm not.  It's been a long night.  And hey,
  37. this is a free program, so it's not like you're losing money if it doesn't
  38. work for you.  And you can improve the code if you'd like.
  39.  
  40. PLEASE!
  41. -------
  42. I do not advocate unsolicited "junk" e-mail.  Advertising on the
  43. Internet has it's place, but unsolicited e-mail is not that place.  You
  44. __will__ get flamed for it if you try it, and that may be the least of
  45. your worries.  PLEASE!  Do NOT use this program for unsolicited e-mail
  46. advertising.  However, you can certainly maintain a voluntary e-mail
  47. mailing list, where people ask to receive your products, etc.  If you
  48. don't think people will ask to be on that list, UniNova can vouch that
  49. you are wrong!  Consumers do like advertising if they control it.  And,
  50. while I'm mentioning it, if you'd like to be on UniNova's mailing list,
  51. just request it from sales@uninova.com (if you're in the market for a
  52. particular computer product now and want price quotes, please indicate
  53. your area of interest).
  54.  
  55. A sense of humor will serve you well as you dig into this...
  56.  
  57. WARNING:
  58. --------
  59. The following installation may require large amounts of coffee
  60. or your favorite adult beverage.  It is anything but automated, and takes
  61. a fair amount of time to get up and running.  You are responsible for
  62. making sure all the program paths are right, etc.  This document was
  63. intended to be fairly generic, but __you__ are the one who will have to
  64. deal with any problems caused by any lack of attention to detail on
  65. your part or mine.
  66.  
  67. Once you get things installed and you're comfortable with how to work it
  68. all, it should save you lots of time and make for relatively-easy bulk
  69. e-mail mailings.
  70.  
  71. I have included as many samples as I could, to show you how to set
  72. this up.  To clearly indicate what is a sample, you will see the
  73. following lines surrounding samples:
  74. =========================] Start Sample [================================
  75. ==========================] End Sample [=================================
  76. If you're not sure which comes at the beginning of a sample and which comes
  77. at the end, please do yourself a favor and quit now.
  78.  
  79. OVERVIEW:
  80. ---------
  81. The general procedures you'll need to accomplish, assuming you already
  82. have Wildcat, Post Master, and your UUCP software installed and running
  83. right, are:
  84.  
  85. 1.  Install File Express if you haven't already.  Shareware versions are
  86.     available on UniNova's BBS (509-925-3893) or on the SimTel FTP
  87.     archives at oak.oakland.edu.  You can register it at a discount
  88.     (lower than the author's requested registration fee) through UniNova;
  89.     call UniNova's BBS for details.
  90. 2.  Create a File Express database (sample shown below);
  91. 3.  Put my EMFFCUT.EXE file in your File Express directory;
  92. 4.  Load data into your database;
  93. 5.  Create a File Express report that generates a batch file (see sample
  94.     info below);
  95. 6.  Create your File Express form letter for mass e-mailing;
  96. 7.  Run your form letter to create a file called EMAIL.TXT;
  97. 8.  Run your report (using the SAME record selection as you used to
  98.     generate the EMAIL.TXT form letter file) to create the EMAILGEN.BAT
  99.     batch file;
  100. 9.  Run the batch file.
  101.  
  102. Now, for a bit more detail, starting with Step 2 from above:
  103.  
  104. Step 2:
  105. -------
  106. First of all, create a database in File Express that looks like this:
  107.  
  108. =========================] Start Sample [================================
  109. File Express Database Format report
  110. -----------------------------------
  111. Database......:C:\FE5\EMAILER
  112. Date..........:03/13/95
  113. Time..........: 3:29 AM
  114. -----------------------------------
  115. #  Field name   type  length  decimals
  116. --- ------------  -      ----      --
  117.   1 ID-Tag        C         5       0
  118.   2 First Name    C        15       0
  119.   3 Last Name     C        15       0
  120.   4 E-Mail Addr.  C        78       0
  121.   5 Keywords      C       200       0
  122.                          ----
  123. Total field lengths       313
  124. Overhead per record         1
  125.                          ----
  126. Total record length       314
  127. ==========================] End Sample [=================================
  128. Note that names of fields 1 and 4 are crucial to the form letter example
  129. and the report example below, but other than that you have lots of
  130. flexibility with the database format.  You can link in a database
  131. of accounts receivable if you want to bill people via e-mail, etc. 
  132.  
  133. The keywords can be used to make sure you target the right people; e.g.,
  134. using a record selection that says something like IF F5 CONTAINS "MEATLOAF"
  135. you could send a message to all the people you know of who look to you for
  136. meatloaf recipes.  (I was tempted to say "or who like Meatloaf songs"
  137. but I hate listening to Meatloaf.  If you don't know who I'm talking
  138. about, you're lucky!  Now, Led Zeppelin is another matter, but also
  139. another topic for another time...)
  140.  
  141.  
  142. Step 3:
  143. -------
  144. Put the EMFFCUT.EXE file from the archive that contained this README.DOC
  145. file into the same directory as File Express.  Or, if you put it somewhere
  146. else, put it in a directory that is part of the DOS PATH or (at a minimum)
  147. remember where you put it.
  148.  
  149.  
  150. Step 4:
  151. -------
  152. Create records for all the people you may want to send bulk e-mail to.
  153.  
  154. Step 5:
  155. -------
  156. Create a report in File Express.  Use a page length and lines per page
  157. of 1 (this causes a warning when you go to print, but tell it to go ahead
  158. and print the report to disk).  Set the page width as wide as it goes,
  159. or at least 120 characters, since the "report" is actually a batch file
  160. that may have long lines in it.
  161.  
  162. It might help to see the report format generated by File Express,
  163. although it's pretty short.  In fact, as you're about to see below,
  164. there's only one database field used throughout the whole report,
  165. and most of it is "hard coded" in the Title and Footer blocks (as
  166. indicated in the REM statements in the batch code sample to follow).
  167.  
  168. =========================] Start Sample [================================
  169. File Express Report Format report
  170. ---------------------------------
  171. Database......:C:\FE5\EMAILER
  172. Date..........:03/13/95
  173. Time..........: 3:28 AM
  174. Name..........:BATFILE 
  175. Descripton....:Generates the batch file                          
  176. Filename.ext..:EMAILER.R0
  177. Index Name....:RECORD #
  178. PDF Name......:ASCII
  179. Selection.....:f5 contains cwu
  180. --------------------------------------------------------------------------
  181.                       Field  Screen            from      to     report
  182.  #  Field name   type length length decimals  row col  row col  area
  183. --- ------------  -     ----   ----     --    --- ---  --- ---  ----------
  184.   1 ID-Tag        C        5      5      0      1  26           Detail 
  185. --------------------------------------------------------------------------
  186. ==========================] End Sample [=================================
  187.  
  188. When you "print" this file, print it to disk with a name like EMAILGEN.BAT
  189. in the same directory as File Express.  Below you'll see a short sample of
  190. the batch file .  It performs the following basic operations:
  191.     1.  Creates a temporary directory on C:\ and copies the large EMAIL.TXT
  192.         file to it, deleting it from it's origin.
  193.     2.  Runs EMFFCUT to create the personal e-mail files from EMAIL.TXT
  194.     3.  Changes to the Wildcat! directory and uses Post Master to import
  195.         the personal e-mail files into the Internet E-Mail conference
  196.     4.  Cleans up the temporary files and deletes the temporary directory
  197.         on the C: drive.
  198.  
  199. Please take note of the REM statements which were added after the batch file
  200. was created by File Express.  They explain how this batch file relates to
  201. the File Express report that created it.
  202.  
  203. =========================] Start Sample [================================
  204. REM The following lines are all in the Title block, and no database fields
  205. REM are used:
  206. @echo off
  207. c:
  208. cd\
  209. md email.tmp
  210. cd email.tmp
  211. copy \fe5\email.txt
  212. del \fe5\email.txt
  213. c:\fe5\emffcut
  214. d:
  215. cd \wc30
  216. REM Now, in the report detail block, you put one line that looks like the
  217. REM following (using your program paths, of course):
  218. REM  postmaster /i:c:\email.tmp\ID-TAG.txt /f:your name /c:[conf#] /p /s:Your subject /T:Overridden Below
  219. REM Note that the ONLY database field on that whole line is ID-TAG, the rest
  220. REM is just hard-coded.  The lines this will generate look like:
  221. REM
  222. postmstr /i:c:\email.tmp\CRING.txt /f:Stuart Whitmore /c:50 /p /s:Test Autorun /t:Overridden Below
  223. postmstr /i:c:\email.tmp\Frodo.txt /f:Stuart Whitmore /c:50 /p /s:Test Autorun /t:Overridden Below
  224. postmstr /i:c:\email.tmp\Bilbo.txt /f:Stuart Whitmore /c:50 /p /s:Test Autorun /t:Overridden Below
  225. postmstr /i:c:\email.tmp\DiGrz.txt /f:Stuart Whitmore /c:50 /p /s:Test Autorun /t:Overridden Below
  226. REM That's the end of the detail block.  The remaining lines are all in the
  227. REM Footer block, just as they're shown here.  Again, no database fields
  228. REM are used:
  229. c:
  230. cd\email.tmp
  231. echo Y | del *.*
  232. cd ..
  233. rd email.tmp
  234. REM That's it, it's over.
  235. ==========================] End Sample [=================================
  236.  
  237. Step 6:
  238. -------
  239. Next, create your letter using the Form Letter option of the File
  240. Express report menu.  For example, it might look something like
  241. this.  Note that the [square brackets] show database fields.  It
  242. is VITAL that [ID-Tag] be on the first line, by itself.  Also,
  243. you must put To: [E-Mail Addr.] on the second line, and follow
  244. that with a blank line.  (You can use a pop-up field list in File
  245. Express to insert the database fields if you're worried about
  246. typos.)  As you can see, this uses the TAG1.IMP file in the
  247. Wildcat! message directory (e.g. C:\WC30\MSG) as a signature.  You
  248. don't need to do that, but it's an option.
  249.  
  250. =========================] Start Sample [================================
  251. [ID-Tag]
  252. To: [E-Mail Addr.]
  253.  
  254. Hi [First Name],
  255.  
  256. I'm testing a little routine I created using File Express and a tiny C
  257. program that I wrote to do bulk e-mail from a database of e-mail
  258. addresses.  If you got this, then it works!  Hope you don't mind being
  259. a guine... er, that is, unexpecting beta tester! :)
  260.  
  261. Good luck with your finals,
  262.  
  263. <<tag1.imp
  264. ==========================] End Sample [=================================
  265.  
  266. Step 7:
  267. -------
  268. When you run that form letter, it will create all of your messages in
  269. one file.  You should have the output of the letter go into a file called
  270. EMAIL.TXT (this is required by EMFFCUT).  Using the above example, you
  271. might get an EMAIL.TXT file that looks like this:
  272.  
  273. =========================] Start Sample [================================
  274. CRING
  275. To: whitmore@tahoma.cwu.edu
  276.  
  277. Hi Stuart,
  278.  
  279. I'm testing a little routine I created using File Express and a tiny C
  280. program that I wrote to do bulk e-mail from a database of e-mail
  281. addresses.  If you got this, then it works!  Hope you don't mind being
  282. a guine... er, that is, unexpecting beta tester! :)
  283.  
  284. Good luck with your finals,
  285.  
  286. <<tag1.imp
  287. Frodo
  288. To: FBaggins@some.place.net
  289.  
  290. Hi Frodo,
  291.  
  292. I'm testing a little routine I created using File Express and a tiny C
  293. program that I wrote to do bulk e-mail from a database of e-mail
  294. addresses.  If you got this, then it works!  Hope you don't mind being
  295. a guine... er, that is, unexpecting beta tester! :)
  296.  
  297. Good luck with your finals,
  298.  
  299. <<tag1.imp
  300.  
  301. ==========================] End Sample [=================================
  302.  
  303. For reference, below you will see two of the personal e-mail
  304. files generated by the sample EMAIL.TXT file above.  Note that, if
  305. all goes well, you should never even see these except as messages
  306. in your message base.
  307.  
  308. =========================] Start Sample [================================
  309. CRING
  310. To: whitmore@tahoma.cwu.edu
  311.  
  312. Hi Stuart,
  313.  
  314. I'm testing a little routine I created using File Express and a tiny C
  315. program that I wrote to do bulk e-mail from a database of e-mail
  316. addresses.  If you got this, then it works!  Hope you don't mind being
  317. a guine... er, that is, unexpecting beta tester! :)
  318.  
  319. Good luck with your finals,
  320.  
  321. <<tag1.imp
  322. ==========================] End Sample [=================================
  323.  
  324. =========================] Start Sample [================================
  325. Frodo
  326. To: FBaggins@some.place.net
  327.  
  328. Hi Frodo,
  329.  
  330. I'm testing a little routine I created using File Express and a tiny C
  331. program that I wrote to do bulk e-mail from a database of e-mail
  332. addresses.  If you got this, then it works!  Hope you don't mind being
  333. a guine... er, that is, unexpecting beta tester! :)
  334.  
  335. Good luck with your finals,
  336.  
  337. <<tag1.imp
  338. ==========================] End Sample [=================================
  339.  
  340. Step 8:
  341. -------
  342. Run the report, and make sure that you use the same record selection
  343. as you used with the form letter.  You should now have EMAIL.TXT and
  344. EMAILGEN.BAT in the same directory as File Express.  Once you're to
  345. that stage, it's time to get out of File Express.
  346.  
  347.  
  348. Step 9:
  349. -------
  350. Run the EMAILGEN.BAT (or whatever batch file name you used for the
  351. report output).  If you got all the paths right, everything should
  352. work smoothly and things will be cleaned up afterward.
  353.  
  354.  
  355. FINAL NOTES:
  356. ------------
  357. EMFFCUT will exit with an errorlevel of 1 or higher if there's an error
  358. of some sort.  You could add the line:
  359.       IF ERRORLEVEL 1 GOTO END
  360. in the File Express report Title section after the line that calls
  361. EMFFCUT, and then the line:
  362.       :END
  363. in the report's Footer section as the last line.  That's just one
  364. possible enhancement of many!
  365.  
  366. For anyone trying to think of something rude for EMFFCUT to mean,
  367. I'll burst your bubble: E-Mail Form Feed CUT (cut an e-mail file
  368. at the form feed character).  Not very original, nor is it rude...
  369.  
  370. [sigh/yawn]  Once again, I make no guarantees about this process or the
  371. included EMFFCUT program.  You're welcome to modify the code -- that's
  372. what "public domain" means.  If this program helps you save money, or
  373. make more money, and you wish to make a donation to a "starving student"
  374. you may do so by sending contributions of whatever amount you wish to
  375. me at the address:
  376.         Stuart Whitmore
  377.         c/o UniNova Services Corp.
  378.         PO Box 900
  379.         Ellensburg, WA 98926
  380. Things I'd find gratifying in place of money include unique post cards,
  381. in-person meetings with surviving members of Led Zeppelin, unusual
  382. bumper stickers, additions to my button ("pin badge") collection, or
  383. a disk with your own software on it if you're a shareware author.  I'm
  384. always happy to hear from old friends, too, particularly those I was
  385. stationed with overseas.  (48th LGTT, RAF Lakenheath UK, 85-87; 66 LGTT,
  386. Sembach AB GE, 87-89.)
  387.  
  388. As you can probably tell, I'm affiliated with UniNova Services Corp.
  389. However, this procedure description and the EMFFCUT program are my
  390. own, and should not be construed as a UniNova product.  (UniNova has
  391. standards of quality control that I don't have the patience for tonight!)
  392.